package day2;

/**
 * @author oldliu
 * @since 1.0
 */
public class StrMAtch {
    public static void main(String[] args) {
        String m="堂海洋.rar";
        String pattern="[\\u4e00-\\u9fa5]+\\.(rar|zip)";

        //boolean matches = m.matches("[\\u4e00-\\u9fa5]+");
        boolean matches = m.matches(pattern);
        System.out.println(matches);

    }
}
